#include <stdio.h>

int main()
{
	unsigned int a  = 0;
	a = 0x12345678; 
	
	unsigned int* p = NULL; 
	p = &a;
	printf("%d\n",p);    // 6487564
	p = p + 1;
	printf("%d\n",p);    // 6487568
	p++;
	printf("%d\n",p);    // 6487568

	unsigned char* p1 = NULL;
//	p1 = &a;   // 6487580
   p1 =(unsigned char*)&a;	
//	 *p1

	unsigned short int* p2 = NULL;	
	p2 = (unsigned short int*)&a;  // 6487564
	printf("%#x\n",*p2);  //0x5678   6487564  6487565



	printf("%d\n",p1);    // 6487564
	printf("%#x\n",*p1);  //0x78
		
	p1 = p1 + 1;  
	printf("%d\n",p1);   // 6487565
	printf("%#x\n",*p1);  //0x56	
	
	p1 = p1 + 1;  
	printf("%d\n",p1);   // 6487566
	printf("%#x\n",*p1);  //0x34

	p1 = p1 + 1;  
	printf("%d\n",p1);  // 6487567
	printf("%#x\n",*p1);  //0x12
	
		


	
	
	


	return 0;
}

